package com.blb.bookms.dao.impl;

import com.blb.bookms.dao.IBookTypeDAO;
import com.blb.bookms.entity.BookTypeTreeNode;
import com.blb.bookms.util.DBUtils;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class BookTypeDAOImpl implements IBookTypeDAO {

    @Override
    public List<BookTypeTreeNode> selectAllBookType() {
        return DBUtils.executeQuery(BookTypeTreeNode.class,"select id,type title from tb_book_type");
    }
}
